﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using OracleDataToRedis.Domain;
using OracleDataToRedis.Utils;

namespace OracleDataToRedis.Coders.Run
{
    public class RunFileCoder
    {
        public static void Write(IList<DbTable> dts)
        {
            string path = BaseParams.RunPath;
            if (Directory.Exists(path) == false)
            {
                Directory.CreateDirectory(path);
            }

            #region 创建App.config类
            string filepath = Path.Combine(path, "App.config");

            FileStream file = new FileStream(filepath, FileMode.Create);
            StreamWriter sw = new StreamWriter(file, Encoding.UTF8);
            sw.WriteLine("<?xml version=\"1.0\" encoding=\"utf-8\" ?>");
            sw.WriteLine("<configuration>");
            sw.WriteLine("    <system.serviceModel>");
            sw.WriteLine("        <bindings>");
            sw.WriteLine("            <wsHttpBinding>");
            sw.WriteLine("                <binding name=\"WSHttpBinding_IMainService\" closeTimeout=\"00:01:00\"");
            sw.WriteLine("                    openTimeout=\"00:01:00\" receiveTimeout=\"00:10:00\" sendTimeout=\"00:01:00\"");
            sw.WriteLine("                    bypassProxyOnLocal=\"false\" transactionFlow=\"false\" hostNameComparisonMode=\"StrongWildcard\"");
            sw.WriteLine("                    maxBufferPoolSize=\"5242880\" maxReceivedMessageSize=\"655360\"");
            sw.WriteLine("                    messageEncoding=\"Text\" textEncoding=\"utf-8\" useDefaultWebProxy=\"true\"");
            sw.WriteLine("                    allowCookies=\"false\">");
            sw.WriteLine("                    <readerQuotas maxDepth=\"32\" maxStringContentLength=\"81920\" maxArrayLength=\"16384\"");
            sw.WriteLine("                        maxBytesPerRead=\"4096\" maxNameTableCharCount=\"16384\" />");
            sw.WriteLine("                    <reliableSession ordered=\"true\" inactivityTimeout=\"00:10:00\"");
            sw.WriteLine("                        enabled=\"false\" />");
            sw.WriteLine("                    <security mode=\"None\">");
            sw.WriteLine("                        <transport clientCredentialType=\"Windows\" proxyCredentialType=\"None\"");
            sw.WriteLine("                            realm=\"\" />");
            sw.WriteLine("                        <message clientCredentialType=\"UserName\" negotiateServiceCredential=\"true\"");
            sw.WriteLine("                            algorithmSuite=\"Default\" establishSecurityContext=\"true\" />");
            sw.WriteLine("                    </security>");
            sw.WriteLine("                </binding>");
            sw.WriteLine("            </wsHttpBinding>");
            sw.WriteLine("        </bindings>");
            sw.WriteLine("        <client>");
            sw.WriteLine("            <endpoint address=\"http://localhost:" + BaseParams.WcfServicePort + "/MainService.svc\" binding=\"wsHttpBinding\"");
            sw.WriteLine("                bindingConfiguration=\"WSHttpBinding_IMainService\" contract=\"ServiceReference1.IMainService\"");
            sw.WriteLine("                name=\"WSHttpBinding_IMainService\">");
            sw.WriteLine("                <identity>");
            sw.WriteLine("                    <dns value=\"MyServer\" />");
            sw.WriteLine("                </identity>");
            sw.WriteLine("            </endpoint>");
            sw.WriteLine("        </client>");
            sw.WriteLine("    </system.serviceModel>");
            sw.WriteLine("</configuration>");

            sw.Close();
            file.Close();

            #endregion

            #region 创建Program.cs类
            filepath = Path.Combine(path, "Program.cs");

            file = new FileStream(filepath, FileMode.Create);
            sw = new StreamWriter(file, Encoding.UTF8);
            sw.WriteLine("using System;");
            sw.WriteLine("using System.Collections.Generic;");
            sw.WriteLine("using System.Windows.Forms;");
            sw.WriteLine("using System.Globalization;");
            sw.WriteLine("using System.Threading;");
            sw.WriteLine("");
            sw.WriteLine("namespace " + BaseParams.RunNameSpace + "");
            sw.WriteLine("{");
            sw.WriteLine("    static class Program");
            sw.WriteLine("    {");
            sw.WriteLine("        /// <summary>");
            sw.WriteLine("        /// 应用程序的主入口点。");
            sw.WriteLine("        /// </summary>");
            sw.WriteLine("        [STAThread]");
            sw.WriteLine("        static void Main()");
            sw.WriteLine("        {");
            sw.WriteLine("            Application.EnableVisualStyles();");
            sw.WriteLine("            Application.SetCompatibleTextRenderingDefault(false);");
            sw.WriteLine("            CultureInfo ci = new CultureInfo(\"zh-CN\");");
            sw.WriteLine("            ci.DateTimeFormat.ShortDatePattern = \"yyyy-MM-dd\";");
            sw.WriteLine("            ci.DateTimeFormat.ShortTimePattern = \"HH:mm:ss\";");
            sw.WriteLine("            ci.DateTimeFormat.LongDatePattern = \"yyyy-MM-dd\";");
            sw.WriteLine("            ci.DateTimeFormat.LongTimePattern = \"HH:mm:ss\";");
            sw.WriteLine("            ci.DateTimeFormat.FullDateTimePattern = \"yyyy-MM-dd HH:mm:ss\";");
            sw.WriteLine("            Thread.CurrentThread.CurrentCulture = ci;");
            sw.WriteLine("            Application.Run(new MDIParent());");
            sw.WriteLine("        }");
            sw.WriteLine("    }");
            sw.WriteLine("}");

            sw.Close();
            file.Close();

            #endregion

            #region 创建MDIParent.cs类
            filepath = Path.Combine(path, "MDIParent.cs");

            file = new FileStream(filepath, FileMode.Create);
            sw = new StreamWriter(file, Encoding.UTF8);
            sw.WriteLine("using System;");
            sw.WriteLine("using System.Collections.Generic;");
            sw.WriteLine("using System.ComponentModel;");
            sw.WriteLine("using System.Data;");
            sw.WriteLine("using System.Drawing;");
            sw.WriteLine("using System.Text;");
            sw.WriteLine("using System.Windows.Forms;");
            sw.WriteLine("using System.Reflection;");
            sw.WriteLine("using log4net;");
            sw.WriteLine("");
            sw.WriteLine("namespace " + BaseParams.RunNameSpace + "");
            sw.WriteLine("{");
            sw.WriteLine("    public partial class MDIParent : Form");
            sw.WriteLine("    {");
            sw.WriteLine("        private int childFormNumber = 0;");
            sw.WriteLine("");
            sw.WriteLine("        public MDIParent()");
            sw.WriteLine("        {");
            sw.WriteLine("            InitializeComponent();");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private static readonly ILog Logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);");
            sw.WriteLine("");
            sw.WriteLine("        private void ShowNewForm(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            Form childForm = new Form();");
            sw.WriteLine("            childForm.MdiParent = this;");
            sw.WriteLine("            childForm.Text = \"窗口 \" + childFormNumber++;");
            sw.WriteLine("            childForm.Show();");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void OpenFile(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            OpenFileDialog openFileDialog = new OpenFileDialog();");
            sw.WriteLine("            openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);");
            sw.WriteLine("            openFileDialog.Filter = \"文本文件(*.txt)|*.txt|所有文件(*.*)|*.*\";");
            sw.WriteLine("            if (openFileDialog.ShowDialog(this) == DialogResult.OK)");
            sw.WriteLine("            {");
            sw.WriteLine("                string FileName = openFileDialog.FileName;");
            sw.WriteLine("            }");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            SaveFileDialog saveFileDialog = new SaveFileDialog();");
            sw.WriteLine("            saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);");
            sw.WriteLine("            saveFileDialog.Filter = \"文本文件(*.txt)|*.txt|所有文件(*.*)|*.*\";");
            sw.WriteLine("            if (saveFileDialog.ShowDialog(this) == DialogResult.OK)");
            sw.WriteLine("            {");
            sw.WriteLine("                string FileName = saveFileDialog.FileName;");
            sw.WriteLine("            }");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void ExitToolsStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            this.Close();");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void CutToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void CopyToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void PasteToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void ToolBarToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            toolStrip.Visible = toolBarToolStripMenuItem.Checked;");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void StatusBarToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            statusStrip.Visible = statusBarToolStripMenuItem.Checked;");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            LayoutMdi(MdiLayout.Cascade);");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void TileVerticalToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            LayoutMdi(MdiLayout.TileVertical);");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            LayoutMdi(MdiLayout.TileHorizontal);");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void ArrangeIconsToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            LayoutMdi(MdiLayout.ArrangeIcons);");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            foreach (Form childForm in MdiChildren)");
            sw.WriteLine("            {");
            sw.WriteLine("                childForm.Close();");
            sw.WriteLine("            }");
            sw.WriteLine("        }");

            sw.WriteLine("        private void MDIParent_Load(object sender, EventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("");
            sw.WriteLine("            TreeNode tn;");
            foreach (DbTable dt in dts)
            {
                sw.WriteLine("            tn = new TreeNode();");
                sw.WriteLine("            tn.Text = \"" + dt.Comments + "\";");
                sw.WriteLine("            tn.Tag = \"" + dt.TitleCaseName + "\";");
                sw.WriteLine("            this.trvMainMenu.Nodes.Add(tn);");
                sw.WriteLine("");
            }
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        private void trvMainMenu_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)");
            sw.WriteLine("        {");
            sw.WriteLine("            Form frm = null;");
            sw.WriteLine("            switch (e.Node.Tag.ToString())");
            sw.WriteLine("            {");
            foreach (DbTable dt in dts)
            {
                sw.WriteLine("                case \"" + dt.TitleCaseName + "\":");
                sw.WriteLine("                    frm = new " + BaseParams.WinFromsNameSpace + ".ManagerForms.frm" + dt.TitleCaseName + "Mng();");
                sw.WriteLine("                    break;");
            }
            sw.WriteLine("            }");
            sw.WriteLine("            GetChildForm(frm, this);");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        /// <summary>");
            sw.WriteLine("        /// 打开子窗体");
            sw.WriteLine("        /// </summary>");
            sw.WriteLine("        /// <param name=\"childForm\">需要打开的子窗体</param>");
            sw.WriteLine("        /// <param name=\"parentForm\">父窗体</param>");
            sw.WriteLine("        private static void GetChildForm(Form childForm, Form parentForm)");
            sw.WriteLine("        {");
            sw.WriteLine("            foreach (Form frm in parentForm.MdiChildren)");
            sw.WriteLine("            {");
            sw.WriteLine("                if(frm.GetType()==childForm.GetType()) ");
            sw.WriteLine("                {");
            sw.WriteLine("                    frm.BringToFront();");
            sw.WriteLine("                    if (frm.WindowState == FormWindowState.Minimized)");
            sw.WriteLine("                        frm.WindowState = FormWindowState.Normal;");
            sw.WriteLine("                    return;");
            sw.WriteLine("                }");
            sw.WriteLine("            }");
            sw.WriteLine("            childForm.MdiParent = parentForm;");
            sw.WriteLine("            childForm.Show();");
            sw.WriteLine("        }");
            sw.WriteLine("    }");
            sw.WriteLine("}");

            sw.Close();
            file.Close();

            #endregion

            #region 创建MDIParent.Designer.cs类
            filepath = Path.Combine(path, "MDIParent.Designer.cs");

            file = new FileStream(filepath, FileMode.Create);
            sw = new StreamWriter(file, Encoding.UTF8);
            sw.WriteLine("namespace " + BaseParams.RunNameSpace + "");
            sw.WriteLine("{");
            sw.WriteLine("    partial class MDIParent");
            sw.WriteLine("    {");
            sw.WriteLine("        /// <summary>");
            sw.WriteLine("        /// 必需的设计器变量。");
            sw.WriteLine("        /// </summary>");
            sw.WriteLine("        private System.ComponentModel.IContainer components = null;");
            sw.WriteLine("");
            sw.WriteLine("        /// <summary>");
            sw.WriteLine("        /// 清理所有正在使用的资源。");
            sw.WriteLine("        /// </summary>");
            sw.WriteLine("        /// <param name=\"disposing\">如果应释放托管资源,为 true；否则为 false。</param>");
            sw.WriteLine("        protected override void Dispose(bool disposing)");
            sw.WriteLine("        {");
            sw.WriteLine("            if (disposing && (components != null))");
            sw.WriteLine("            {");
            sw.WriteLine("                components.Dispose();");
            sw.WriteLine("            }");
            sw.WriteLine("            base.Dispose(disposing);");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        #region Windows 窗体设计器生成的代码");
            sw.WriteLine("");
            sw.WriteLine("        /// <summary>");
            sw.WriteLine("        /// 设计器支持所需的方法 - 不要");
            sw.WriteLine("        /// 使用代码编辑器修改此方法的内容。");
            sw.WriteLine("        /// </summary>");
            sw.WriteLine("        private void InitializeComponent()");
            sw.WriteLine("        {");
            sw.WriteLine("            this.components = new System.ComponentModel.Container();");
            sw.WriteLine("            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MDIParent));");
            sw.WriteLine("            this.menuStrip = new System.Windows.Forms.MenuStrip();");
            sw.WriteLine("            this.fileMenu = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();");
            sw.WriteLine("            this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();");
            sw.WriteLine("            this.printToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.printPreviewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.printSetupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();");
            sw.WriteLine("            this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.editMenu = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();");
            sw.WriteLine("            this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();");
            sw.WriteLine("            this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.viewMenu = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.toolBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.statusBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.toolsMenu = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.windowsMenu = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.newWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.cascadeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.tileVerticalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.tileHorizontalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.closeAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.arrangeIconsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.helpMenu = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.contentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.indexToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.searchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();");
            sw.WriteLine("            this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();");
            sw.WriteLine("            this.toolStrip = new System.Windows.Forms.ToolStrip();");
            sw.WriteLine("            this.newToolStripButton = new System.Windows.Forms.ToolStripButton();");
            sw.WriteLine("            this.openToolStripButton = new System.Windows.Forms.ToolStripButton();");
            sw.WriteLine("            this.saveToolStripButton = new System.Windows.Forms.ToolStripButton();");
            sw.WriteLine("            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();");
            sw.WriteLine("            this.printToolStripButton = new System.Windows.Forms.ToolStripButton();");
            sw.WriteLine("            this.printPreviewToolStripButton = new System.Windows.Forms.ToolStripButton();");
            sw.WriteLine("            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();");
            sw.WriteLine("            this.helpToolStripButton = new System.Windows.Forms.ToolStripButton();");
            sw.WriteLine("            this.statusStrip = new System.Windows.Forms.StatusStrip();");
            sw.WriteLine("            this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();");
            sw.WriteLine("            this.toolTip = new System.Windows.Forms.ToolTip(this.components);");
            sw.WriteLine("            this.trvMainMenu = new " + BaseParams.ControlsNameSpace + ".MyTreeView();");
            sw.WriteLine("            this.mySplitter1 = new " + BaseParams.ControlsNameSpace + ".MySplitter();");
            sw.WriteLine("            this.menuStrip.SuspendLayout();");
            sw.WriteLine("            this.toolStrip.SuspendLayout();");
            sw.WriteLine("            this.statusStrip.SuspendLayout();");
            sw.WriteLine("            this.SuspendLayout();");
            sw.WriteLine("            // ");
            sw.WriteLine("            // menuStrip");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {");
            sw.WriteLine("            this.fileMenu,");
            sw.WriteLine("            this.editMenu,");
            sw.WriteLine("            this.viewMenu,");
            sw.WriteLine("            this.toolsMenu,");
            sw.WriteLine("            this.windowsMenu,");
            sw.WriteLine("            this.helpMenu});");
            sw.WriteLine("            this.menuStrip.Location = new System.Drawing.Point(0, 0);");
            sw.WriteLine("            this.menuStrip.MdiWindowListItem = this.windowsMenu;");
            sw.WriteLine("            this.menuStrip.Name = \"menuStrip\";");
            sw.WriteLine("            this.menuStrip.Size = new System.Drawing.Size(632, 24);");
            sw.WriteLine("            this.menuStrip.TabIndex = 0;");
            sw.WriteLine("            this.menuStrip.Text = \"MenuStrip\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // fileMenu");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.fileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {");
            sw.WriteLine("            this.newToolStripMenuItem,");
            sw.WriteLine("            this.openToolStripMenuItem,");
            sw.WriteLine("            this.toolStripSeparator3,");
            sw.WriteLine("            this.saveToolStripMenuItem,");
            sw.WriteLine("            this.saveAsToolStripMenuItem,");
            sw.WriteLine("            this.toolStripSeparator4,");
            sw.WriteLine("            this.printToolStripMenuItem,");
            sw.WriteLine("            this.printPreviewToolStripMenuItem,");
            sw.WriteLine("            this.printSetupToolStripMenuItem,");
            sw.WriteLine("            this.toolStripSeparator5,");
            sw.WriteLine("            this.exitToolStripMenuItem});");
            sw.WriteLine("            this.fileMenu.ImageTransparentColor = System.Drawing.SystemColors.ActiveBorder;");
            sw.WriteLine("            this.fileMenu.Name = \"fileMenu\";");
            sw.WriteLine("            this.fileMenu.Size = new System.Drawing.Size(59, 20);");
            sw.WriteLine("            this.fileMenu.Text = \"文件(&F)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // newToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"newToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.newToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.newToolStripMenuItem.Name = \"newToolStripMenuItem\";");
            sw.WriteLine("            this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));");
            sw.WriteLine("            this.newToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.newToolStripMenuItem.Text = \"新建(&N)\";");
            sw.WriteLine("            this.newToolStripMenuItem.Click += new System.EventHandler(this.ShowNewForm);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // openToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"openToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.openToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.openToolStripMenuItem.Name = \"openToolStripMenuItem\";");
            sw.WriteLine("            this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));");
            sw.WriteLine("            this.openToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.openToolStripMenuItem.Text = \"打开(&O)\";");
            sw.WriteLine("            this.openToolStripMenuItem.Click += new System.EventHandler(this.OpenFile);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStripSeparator3");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStripSeparator3.Name = \"toolStripSeparator3\";");
            sw.WriteLine("            this.toolStripSeparator3.Size = new System.Drawing.Size(150, 6);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // saveToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"saveToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.saveToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.saveToolStripMenuItem.Name = \"saveToolStripMenuItem\";");
            sw.WriteLine("            this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));");
            sw.WriteLine("            this.saveToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.saveToolStripMenuItem.Text = \"保存(&S)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // saveAsToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.saveAsToolStripMenuItem.Name = \"saveAsToolStripMenuItem\";");
            sw.WriteLine("            this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.saveAsToolStripMenuItem.Text = \"另存为(&A)\";");
            sw.WriteLine("            this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.SaveAsToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStripSeparator4");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStripSeparator4.Name = \"toolStripSeparator4\";");
            sw.WriteLine("            this.toolStripSeparator4.Size = new System.Drawing.Size(150, 6);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // printToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.printToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"printToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.printToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.printToolStripMenuItem.Name = \"printToolStripMenuItem\";");
            sw.WriteLine("            this.printToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P)));");
            sw.WriteLine("            this.printToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.printToolStripMenuItem.Text = \"打印(&P)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // printPreviewToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.printPreviewToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"printPreviewToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.printPreviewToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.printPreviewToolStripMenuItem.Name = \"printPreviewToolStripMenuItem\";");
            sw.WriteLine("            this.printPreviewToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.printPreviewToolStripMenuItem.Text = \"打印预览(&V)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // printSetupToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.printSetupToolStripMenuItem.Name = \"printSetupToolStripMenuItem\";");
            sw.WriteLine("            this.printSetupToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.printSetupToolStripMenuItem.Text = \"打印设置\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStripSeparator5");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStripSeparator5.Name = \"toolStripSeparator5\";");
            sw.WriteLine("            this.toolStripSeparator5.Size = new System.Drawing.Size(150, 6);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // exitToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.exitToolStripMenuItem.Name = \"exitToolStripMenuItem\";");
            sw.WriteLine("            this.exitToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.exitToolStripMenuItem.Text = \"退出(&X)\";");
            sw.WriteLine("            this.exitToolStripMenuItem.Click += new System.EventHandler(this.ExitToolsStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // editMenu");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.editMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {");
            sw.WriteLine("            this.undoToolStripMenuItem,");
            sw.WriteLine("            this.redoToolStripMenuItem,");
            sw.WriteLine("            this.toolStripSeparator6,");
            sw.WriteLine("            this.cutToolStripMenuItem,");
            sw.WriteLine("            this.copyToolStripMenuItem,");
            sw.WriteLine("            this.pasteToolStripMenuItem,");
            sw.WriteLine("            this.toolStripSeparator7,");
            sw.WriteLine("            this.selectAllToolStripMenuItem});");
            sw.WriteLine("            this.editMenu.Name = \"editMenu\";");
            sw.WriteLine("            this.editMenu.Size = new System.Drawing.Size(59, 20);");
            sw.WriteLine("            this.editMenu.Text = \"编辑(&E)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // undoToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.undoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"undoToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.undoToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.undoToolStripMenuItem.Name = \"undoToolStripMenuItem\";");
            sw.WriteLine("            this.undoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));");
            sw.WriteLine("            this.undoToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.undoToolStripMenuItem.Text = \"撤消(&U)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // redoToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.redoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"redoToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.redoToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.redoToolStripMenuItem.Name = \"redoToolStripMenuItem\";");
            sw.WriteLine("            this.redoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));");
            sw.WriteLine("            this.redoToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.redoToolStripMenuItem.Text = \"重复(&R)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStripSeparator6");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStripSeparator6.Name = \"toolStripSeparator6\";");
            sw.WriteLine("            this.toolStripSeparator6.Size = new System.Drawing.Size(150, 6);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // cutToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.cutToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"cutToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.cutToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.cutToolStripMenuItem.Name = \"cutToolStripMenuItem\";");
            sw.WriteLine("            this.cutToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));");
            sw.WriteLine("            this.cutToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.cutToolStripMenuItem.Text = \"剪切(&T)\";");
            sw.WriteLine("            this.cutToolStripMenuItem.Click += new System.EventHandler(this.CutToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // copyToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.copyToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"copyToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.copyToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.copyToolStripMenuItem.Name = \"copyToolStripMenuItem\";");
            sw.WriteLine("            this.copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));");
            sw.WriteLine("            this.copyToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.copyToolStripMenuItem.Text = \"复制(&C)\";");
            sw.WriteLine("            this.copyToolStripMenuItem.Click += new System.EventHandler(this.CopyToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // pasteToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.pasteToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"pasteToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.pasteToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.pasteToolStripMenuItem.Name = \"pasteToolStripMenuItem\";");
            sw.WriteLine("            this.pasteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));");
            sw.WriteLine("            this.pasteToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.pasteToolStripMenuItem.Text = \"粘贴(&P)\";");
            sw.WriteLine("            this.pasteToolStripMenuItem.Click += new System.EventHandler(this.PasteToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStripSeparator7");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStripSeparator7.Name = \"toolStripSeparator7\";");
            sw.WriteLine("            this.toolStripSeparator7.Size = new System.Drawing.Size(150, 6);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // selectAllToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.selectAllToolStripMenuItem.Name = \"selectAllToolStripMenuItem\";");
            sw.WriteLine("            this.selectAllToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));");
            sw.WriteLine("            this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(153, 22);");
            sw.WriteLine("            this.selectAllToolStripMenuItem.Text = \"全选(&A)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // viewMenu");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.viewMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {");
            sw.WriteLine("            this.toolBarToolStripMenuItem,");
            sw.WriteLine("            this.statusBarToolStripMenuItem});");
            sw.WriteLine("            this.viewMenu.Name = \"viewMenu\";");
            sw.WriteLine("            this.viewMenu.Size = new System.Drawing.Size(59, 20);");
            sw.WriteLine("            this.viewMenu.Text = \"视图(&V)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolBarToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolBarToolStripMenuItem.Checked = true;");
            sw.WriteLine("            this.toolBarToolStripMenuItem.CheckOnClick = true;");
            sw.WriteLine("            this.toolBarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;");
            sw.WriteLine("            this.toolBarToolStripMenuItem.Name = \"toolBarToolStripMenuItem\";");
            sw.WriteLine("            this.toolBarToolStripMenuItem.Size = new System.Drawing.Size(124, 22);");
            sw.WriteLine("            this.toolBarToolStripMenuItem.Text = \"工具栏(&T)\";");
            sw.WriteLine("            this.toolBarToolStripMenuItem.Click += new System.EventHandler(this.ToolBarToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // statusBarToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.statusBarToolStripMenuItem.Checked = true;");
            sw.WriteLine("            this.statusBarToolStripMenuItem.CheckOnClick = true;");
            sw.WriteLine("            this.statusBarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;");
            sw.WriteLine("            this.statusBarToolStripMenuItem.Name = \"statusBarToolStripMenuItem\";");
            sw.WriteLine("            this.statusBarToolStripMenuItem.Size = new System.Drawing.Size(124, 22);");
            sw.WriteLine("            this.statusBarToolStripMenuItem.Text = \"状态栏(&S)\";");
            sw.WriteLine("            this.statusBarToolStripMenuItem.Click += new System.EventHandler(this.StatusBarToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolsMenu");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolsMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {");
            sw.WriteLine("            this.optionsToolStripMenuItem});");
            sw.WriteLine("            this.toolsMenu.Name = \"toolsMenu\";");
            sw.WriteLine("            this.toolsMenu.Size = new System.Drawing.Size(59, 20);");
            sw.WriteLine("            this.toolsMenu.Text = \"工具(&T)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // optionsToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.optionsToolStripMenuItem.Name = \"optionsToolStripMenuItem\";");
            sw.WriteLine("            this.optionsToolStripMenuItem.Size = new System.Drawing.Size(112, 22);");
            sw.WriteLine("            this.optionsToolStripMenuItem.Text = \"选项(&O)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // windowsMenu");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.windowsMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {");
            sw.WriteLine("            this.newWindowToolStripMenuItem,");
            sw.WriteLine("            this.cascadeToolStripMenuItem,");
            sw.WriteLine("            this.tileVerticalToolStripMenuItem,");
            sw.WriteLine("            this.tileHorizontalToolStripMenuItem,");
            sw.WriteLine("            this.closeAllToolStripMenuItem,");
            sw.WriteLine("            this.arrangeIconsToolStripMenuItem});");
            sw.WriteLine("            this.windowsMenu.Name = \"windowsMenu\";");
            sw.WriteLine("            this.windowsMenu.Size = new System.Drawing.Size(59, 20);");
            sw.WriteLine("            this.windowsMenu.Text = \"窗口(&W)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // newWindowToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.newWindowToolStripMenuItem.Name = \"newWindowToolStripMenuItem\";");
            sw.WriteLine("            this.newWindowToolStripMenuItem.Size = new System.Drawing.Size(136, 22);");
            sw.WriteLine("            this.newWindowToolStripMenuItem.Text = \"新建窗口(&N)\";");
            sw.WriteLine("            this.newWindowToolStripMenuItem.Click += new System.EventHandler(this.ShowNewForm);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // cascadeToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.cascadeToolStripMenuItem.Name = \"cascadeToolStripMenuItem\";");
            sw.WriteLine("            this.cascadeToolStripMenuItem.Size = new System.Drawing.Size(136, 22);");
            sw.WriteLine("            this.cascadeToolStripMenuItem.Text = \"层叠(&C)\";");
            sw.WriteLine("            this.cascadeToolStripMenuItem.Click += new System.EventHandler(this.CascadeToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // tileVerticalToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.tileVerticalToolStripMenuItem.Name = \"tileVerticalToolStripMenuItem\";");
            sw.WriteLine("            this.tileVerticalToolStripMenuItem.Size = new System.Drawing.Size(136, 22);");
            sw.WriteLine("            this.tileVerticalToolStripMenuItem.Text = \"垂直平铺(&V)\";");
            sw.WriteLine("            this.tileVerticalToolStripMenuItem.Click += new System.EventHandler(this.TileVerticalToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // tileHorizontalToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.tileHorizontalToolStripMenuItem.Name = \"tileHorizontalToolStripMenuItem\";");
            sw.WriteLine("            this.tileHorizontalToolStripMenuItem.Size = new System.Drawing.Size(136, 22);");
            sw.WriteLine("            this.tileHorizontalToolStripMenuItem.Text = \"水平平铺(&H)\";");
            sw.WriteLine("            this.tileHorizontalToolStripMenuItem.Click += new System.EventHandler(this.TileHorizontalToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // closeAllToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.closeAllToolStripMenuItem.Name = \"closeAllToolStripMenuItem\";");
            sw.WriteLine("            this.closeAllToolStripMenuItem.Size = new System.Drawing.Size(136, 22);");
            sw.WriteLine("            this.closeAllToolStripMenuItem.Text = \"全部关闭(&L)\";");
            sw.WriteLine("            this.closeAllToolStripMenuItem.Click += new System.EventHandler(this.CloseAllToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // arrangeIconsToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.arrangeIconsToolStripMenuItem.Name = \"arrangeIconsToolStripMenuItem\";");
            sw.WriteLine("            this.arrangeIconsToolStripMenuItem.Size = new System.Drawing.Size(136, 22);");
            sw.WriteLine("            this.arrangeIconsToolStripMenuItem.Text = \"排列图标(&A)\";");
            sw.WriteLine("            this.arrangeIconsToolStripMenuItem.Click += new System.EventHandler(this.ArrangeIconsToolStripMenuItem_Click);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // helpMenu");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.helpMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {");
            sw.WriteLine("            this.contentsToolStripMenuItem,");
            sw.WriteLine("            this.indexToolStripMenuItem,");
            sw.WriteLine("            this.searchToolStripMenuItem,");
            sw.WriteLine("            this.toolStripSeparator8,");
            sw.WriteLine("            this.aboutToolStripMenuItem});");
            sw.WriteLine("            this.helpMenu.Name = \"helpMenu\";");
            sw.WriteLine("            this.helpMenu.Size = new System.Drawing.Size(59, 20);");
            sw.WriteLine("            this.helpMenu.Text = \"帮助(&H)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // contentsToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.contentsToolStripMenuItem.Name = \"contentsToolStripMenuItem\";");
            sw.WriteLine("            this.contentsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F1)));");
            sw.WriteLine("            this.contentsToolStripMenuItem.Size = new System.Drawing.Size(160, 22);");
            sw.WriteLine("            this.contentsToolStripMenuItem.Text = \"目录(&C)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // indexToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.indexToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"indexToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.indexToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.indexToolStripMenuItem.Name = \"indexToolStripMenuItem\";");
            sw.WriteLine("            this.indexToolStripMenuItem.Size = new System.Drawing.Size(160, 22);");
            sw.WriteLine("            this.indexToolStripMenuItem.Text = \"索引(&I)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // searchToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.searchToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject(\"searchToolStripMenuItem.Image\")));");
            sw.WriteLine("            this.searchToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.searchToolStripMenuItem.Name = \"searchToolStripMenuItem\";");
            sw.WriteLine("            this.searchToolStripMenuItem.Size = new System.Drawing.Size(160, 22);");
            sw.WriteLine("            this.searchToolStripMenuItem.Text = \"搜索(&S)\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStripSeparator8");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStripSeparator8.Name = \"toolStripSeparator8\";");
            sw.WriteLine("            this.toolStripSeparator8.Size = new System.Drawing.Size(157, 6);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // aboutToolStripMenuItem");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.aboutToolStripMenuItem.Name = \"aboutToolStripMenuItem\";");
            sw.WriteLine("            this.aboutToolStripMenuItem.Size = new System.Drawing.Size(160, 22);");
            sw.WriteLine("            this.aboutToolStripMenuItem.Text = \"关于(&A) ... ...\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStrip");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {");
            sw.WriteLine("            this.newToolStripButton,");
            sw.WriteLine("            this.openToolStripButton,");
            sw.WriteLine("            this.saveToolStripButton,");
            sw.WriteLine("            this.toolStripSeparator1,");
            sw.WriteLine("            this.printToolStripButton,");
            sw.WriteLine("            this.printPreviewToolStripButton,");
            sw.WriteLine("            this.toolStripSeparator2,");
            sw.WriteLine("            this.helpToolStripButton});");
            sw.WriteLine("            this.toolStrip.Location = new System.Drawing.Point(0, 24);");
            sw.WriteLine("            this.toolStrip.Name = \"toolStrip\";");
            sw.WriteLine("            this.toolStrip.Size = new System.Drawing.Size(632, 25);");
            sw.WriteLine("            this.toolStrip.TabIndex = 1;");
            sw.WriteLine("            this.toolStrip.Text = \"ToolStrip\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // newToolStripButton");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.newToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;");
            sw.WriteLine("            this.newToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(\"newToolStripButton.Image\")));");
            sw.WriteLine("            this.newToolStripButton.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.newToolStripButton.Name = \"newToolStripButton\";");
            sw.WriteLine("            this.newToolStripButton.Size = new System.Drawing.Size(23, 22);");
            sw.WriteLine("            this.newToolStripButton.Text = \"新建\";");
            sw.WriteLine("            this.newToolStripButton.Click += new System.EventHandler(this.ShowNewForm);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // openToolStripButton");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.openToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;");
            sw.WriteLine("            this.openToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(\"openToolStripButton.Image\")));");
            sw.WriteLine("            this.openToolStripButton.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.openToolStripButton.Name = \"openToolStripButton\";");
            sw.WriteLine("            this.openToolStripButton.Size = new System.Drawing.Size(23, 22);");
            sw.WriteLine("            this.openToolStripButton.Text = \"打开\";");
            sw.WriteLine("            this.openToolStripButton.Click += new System.EventHandler(this.OpenFile);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // saveToolStripButton");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.saveToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;");
            sw.WriteLine("            this.saveToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(\"saveToolStripButton.Image\")));");
            sw.WriteLine("            this.saveToolStripButton.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.saveToolStripButton.Name = \"saveToolStripButton\";");
            sw.WriteLine("            this.saveToolStripButton.Size = new System.Drawing.Size(23, 22);");
            sw.WriteLine("            this.saveToolStripButton.Text = \"保存\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStripSeparator1");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStripSeparator1.Name = \"toolStripSeparator1\";");
            sw.WriteLine("            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // printToolStripButton");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.printToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;");
            sw.WriteLine("            this.printToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(\"printToolStripButton.Image\")));");
            sw.WriteLine("            this.printToolStripButton.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.printToolStripButton.Name = \"printToolStripButton\";");
            sw.WriteLine("            this.printToolStripButton.Size = new System.Drawing.Size(23, 22);");
            sw.WriteLine("            this.printToolStripButton.Text = \"打印\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // printPreviewToolStripButton");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.printPreviewToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;");
            sw.WriteLine("            this.printPreviewToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(\"printPreviewToolStripButton.Image\")));");
            sw.WriteLine("            this.printPreviewToolStripButton.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.printPreviewToolStripButton.Name = \"printPreviewToolStripButton\";");
            sw.WriteLine("            this.printPreviewToolStripButton.Size = new System.Drawing.Size(23, 22);");
            sw.WriteLine("            this.printPreviewToolStripButton.Text = \"打印预览\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStripSeparator2");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStripSeparator2.Name = \"toolStripSeparator2\";");
            sw.WriteLine("            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // helpToolStripButton");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.helpToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;");
            sw.WriteLine("            this.helpToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(\"helpToolStripButton.Image\")));");
            sw.WriteLine("            this.helpToolStripButton.ImageTransparentColor = System.Drawing.Color.Black;");
            sw.WriteLine("            this.helpToolStripButton.Name = \"helpToolStripButton\";");
            sw.WriteLine("            this.helpToolStripButton.Size = new System.Drawing.Size(23, 22);");
            sw.WriteLine("            this.helpToolStripButton.Text = \"帮助\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // statusStrip");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {");
            sw.WriteLine("            this.toolStripStatusLabel});");
            sw.WriteLine("            this.statusStrip.Location = new System.Drawing.Point(0, 396);");
            sw.WriteLine("            this.statusStrip.Name = \"statusStrip\";");
            sw.WriteLine("            this.statusStrip.Size = new System.Drawing.Size(632, 22);");
            sw.WriteLine("            this.statusStrip.TabIndex = 2;");
            sw.WriteLine("            this.statusStrip.Text = \"StatusStrip\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // toolStripStatusLabel");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.toolStripStatusLabel.Name = \"toolStripStatusLabel\";");
            sw.WriteLine("            this.toolStripStatusLabel.Size = new System.Drawing.Size(29, 17);");
            sw.WriteLine("            this.toolStripStatusLabel.Text = \"状态\";");
            sw.WriteLine("            // ");
            sw.WriteLine("            // trvMainMenu");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.trvMainMenu.Dock = System.Windows.Forms.DockStyle.Left;");
            sw.WriteLine("            this.trvMainMenu.Location = new System.Drawing.Point(0, 49);");
            sw.WriteLine("            this.trvMainMenu.Name = \"trvMainMenu\";");
            sw.WriteLine("            this.trvMainMenu.Size = new System.Drawing.Size(137, 347);");
            sw.WriteLine("            this.trvMainMenu.TabIndex = 4;");
            sw.WriteLine("            this.trvMainMenu.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.trvMainMenu_NodeMouseClick);");
            sw.WriteLine("            // ");
            sw.WriteLine("            // mySplitter1");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.mySplitter1.Location = new System.Drawing.Point(137, 49);");
            sw.WriteLine("            this.mySplitter1.Name = \"mySplitter1\";");
            sw.WriteLine("            this.mySplitter1.Size = new System.Drawing.Size(3, 347);");
            sw.WriteLine("            this.mySplitter1.TabIndex = 5;");
            sw.WriteLine("            this.mySplitter1.TabStop = false;");
            sw.WriteLine("            // ");
            sw.WriteLine("            // MDIParent");
            sw.WriteLine("            // ");
            sw.WriteLine("            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);");
            sw.WriteLine("            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;");
            sw.WriteLine("            this.ClientSize = new System.Drawing.Size(632, 418);");
            sw.WriteLine("            this.Controls.Add(this.mySplitter1);");
            sw.WriteLine("            this.Controls.Add(this.trvMainMenu);");
            sw.WriteLine("            this.Controls.Add(this.statusStrip);");
            sw.WriteLine("            this.Controls.Add(this.toolStrip);");
            sw.WriteLine("            this.Controls.Add(this.menuStrip);");
            sw.WriteLine("            this.Load += new System.EventHandler(this.MDIParent_Load);");
            sw.WriteLine("            this.IsMdiContainer = true;");
            sw.WriteLine("            this.MainMenuStrip = this.menuStrip;");
            sw.WriteLine("            this.Name = \"MDIParent\";");
            sw.WriteLine("            this.Text = \"MDIParent\";");
            sw.WriteLine("            this.menuStrip.ResumeLayout(false);");
            sw.WriteLine("            this.menuStrip.PerformLayout();");
            sw.WriteLine("            this.toolStrip.ResumeLayout(false);");
            sw.WriteLine("            this.toolStrip.PerformLayout();");
            sw.WriteLine("            this.statusStrip.ResumeLayout(false);");
            sw.WriteLine("            this.statusStrip.PerformLayout();");
            sw.WriteLine("            this.ResumeLayout(false);");
            sw.WriteLine("            this.PerformLayout();");
            sw.WriteLine("");
            sw.WriteLine("        }");
            sw.WriteLine("        #endregion");
            sw.WriteLine("");
            sw.WriteLine("");
            sw.WriteLine("        private System.Windows.Forms.MenuStrip menuStrip;");
            sw.WriteLine("        private System.Windows.Forms.ToolStrip toolStrip;");
            sw.WriteLine("        private System.Windows.Forms.StatusStrip statusStrip;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem printSetupToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripSeparator toolStripSeparator8;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem tileHorizontalToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem fileMenu;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem printToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem printPreviewToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem editMenu;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem cutToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem viewMenu;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem toolBarToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem statusBarToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem toolsMenu;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem windowsMenu;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem newWindowToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem cascadeToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem tileVerticalToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem closeAllToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem arrangeIconsToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem helpMenu;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem contentsToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem indexToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripMenuItem searchToolStripMenuItem;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripButton newToolStripButton;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripButton openToolStripButton;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripButton saveToolStripButton;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripButton printToolStripButton;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripButton printPreviewToolStripButton;");
            sw.WriteLine("        private System.Windows.Forms.ToolStripButton helpToolStripButton;");
            sw.WriteLine("        private System.Windows.Forms.ToolTip toolTip;");
            sw.WriteLine("        private " + BaseParams.ControlsNameSpace + ".MyTreeView trvMainMenu;");
            sw.WriteLine("        private " + BaseParams.ControlsNameSpace + ".MySplitter mySplitter1;");
            sw.WriteLine("    }");
            sw.WriteLine("}");

            sw.Close();
            file.Close();

            #endregion

            #region 创建MDIParent.resx类
            filepath = Path.Combine(path, "MDIParent.resx");

            file = new FileStream(filepath, FileMode.Create);
            sw = new StreamWriter(file, Encoding.UTF8);
            sw.WriteLine("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
            sw.WriteLine("<root>");
            sw.WriteLine("  <!-- ");
            sw.WriteLine("    Microsoft ResX Schema ");
            sw.WriteLine("    ");
            sw.WriteLine("    Version 2.0");
            sw.WriteLine("    ");
            sw.WriteLine("    The primary goals of this format is to allow a simple XML format ");
            sw.WriteLine("    that is mostly human readable. The generation and parsing of the ");
            sw.WriteLine("    various data types are done through the TypeConverter classes ");
            sw.WriteLine("    associated with the data types.");
            sw.WriteLine("    ");
            sw.WriteLine("    Example:");
            sw.WriteLine("    ");
            sw.WriteLine("    ... ado.net/XML headers & schema ...");
            sw.WriteLine("    <resheader name=\"resmimetype\">text/microsoft-resx</resheader>");
            sw.WriteLine("    <resheader name=\"version\">2.0</resheader>");
            sw.WriteLine("    <resheader name=\"reader\">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>");
            sw.WriteLine("    <resheader name=\"writer\">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>");
            sw.WriteLine("    <data name=\"Name1\"><value>this is my long string</value><comment>this is a comment</comment></data>");
            sw.WriteLine("    <data name=\"Color1\" type=\"System.Drawing.Color, System.Drawing\">Blue</data>");
            sw.WriteLine("    <data name=\"Bitmap1\" mimetype=\"application/x-microsoft.net.object.binary.base64\">");
            sw.WriteLine("        <value>[base64 mime encoded serialized .NET Framework object]</value>");
            sw.WriteLine("    </data>");
            sw.WriteLine("    <data name=\"Icon1\" type=\"System.Drawing.Icon, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>");
            sw.WriteLine("        <comment>This is a comment</comment>");
            sw.WriteLine("    </data>");
            sw.WriteLine("                ");
            sw.WriteLine("    There are any number of \"resheader\" rows that contain simple ");
            sw.WriteLine("    name/value pairs.");
            sw.WriteLine("    ");
            sw.WriteLine("    Each data row contains a name, and value. The row also contains a ");
            sw.WriteLine("    type or mimetype. Type corresponds to a .NET class that support ");
            sw.WriteLine("    text/value conversion through the TypeConverter architecture. ");
            sw.WriteLine("    Classes that don't support this are serialized and stored with the ");
            sw.WriteLine("    mimetype set.");
            sw.WriteLine("    ");
            sw.WriteLine("    The mimetype is used for serialized objects, and tells the ");
            sw.WriteLine("    ResXResourceReader how to depersist the object. This is currently not ");
            sw.WriteLine("    extensible. For a given mimetype the value must be set accordingly:");
            sw.WriteLine("    ");
            sw.WriteLine("    Note - application/x-microsoft.net.object.binary.base64 is the format ");
            sw.WriteLine("    that the ResXResourceWriter will generate, however the reader can ");
            sw.WriteLine("    read any of the formats listed below.");
            sw.WriteLine("    ");
            sw.WriteLine("    mimetype: application/x-microsoft.net.object.binary.base64");
            sw.WriteLine("    value   : The object must be serialized with ");
            sw.WriteLine("            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter");
            sw.WriteLine("            : and then encoded with base64 encoding.");
            sw.WriteLine("    ");
            sw.WriteLine("    mimetype: application/x-microsoft.net.object.soap.base64");
            sw.WriteLine("    value   : The object must be serialized with ");
            sw.WriteLine("            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter");
            sw.WriteLine("            : and then encoded with base64 encoding.");
            sw.WriteLine("");
            sw.WriteLine("    mimetype: application/x-microsoft.net.object.bytearray.base64");
            sw.WriteLine("    value   : The object must be serialized into a byte array ");
            sw.WriteLine("            : using a System.ComponentModel.TypeConverter");
            sw.WriteLine("            : and then encoded with base64 encoding.");
            sw.WriteLine("    -->");
            sw.WriteLine("  <xsd:schema id=\"root\" xmlns=\"\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\">");
            sw.WriteLine("    <xsd:import namespace=\"http://www.w3.org/XML/1998/namespace\" />");
            sw.WriteLine("    <xsd:element name=\"root\" msdata:IsDataSet=\"true\">");
            sw.WriteLine("      <xsd:complexType>");
            sw.WriteLine("        <xsd:choice maxOccurs=\"unbounded\">");
            sw.WriteLine("          <xsd:element name=\"metadata\">");
            sw.WriteLine("            <xsd:complexType>");
            sw.WriteLine("              <xsd:sequence>");
            sw.WriteLine("                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" />");
            sw.WriteLine("              </xsd:sequence>");
            sw.WriteLine("              <xsd:attribute name=\"name\" use=\"required\" type=\"xsd:string\" />");
            sw.WriteLine("              <xsd:attribute name=\"type\" type=\"xsd:string\" />");
            sw.WriteLine("              <xsd:attribute name=\"mimetype\" type=\"xsd:string\" />");
            sw.WriteLine("              <xsd:attribute ref=\"xml:space\" />");
            sw.WriteLine("            </xsd:complexType>");
            sw.WriteLine("          </xsd:element>");
            sw.WriteLine("          <xsd:element name=\"assembly\">");
            sw.WriteLine("            <xsd:complexType>");
            sw.WriteLine("              <xsd:attribute name=\"alias\" type=\"xsd:string\" />");
            sw.WriteLine("              <xsd:attribute name=\"name\" type=\"xsd:string\" />");
            sw.WriteLine("            </xsd:complexType>");
            sw.WriteLine("          </xsd:element>");
            sw.WriteLine("          <xsd:element name=\"data\">");
            sw.WriteLine("            <xsd:complexType>");
            sw.WriteLine("              <xsd:sequence>");
            sw.WriteLine("                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"1\" />");
            sw.WriteLine("                <xsd:element name=\"comment\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"2\" />");
            sw.WriteLine("              </xsd:sequence>");
            sw.WriteLine("              <xsd:attribute name=\"name\" type=\"xsd:string\" use=\"required\" msdata:Ordinal=\"1\" />");
            sw.WriteLine("              <xsd:attribute name=\"type\" type=\"xsd:string\" msdata:Ordinal=\"3\" />");
            sw.WriteLine("              <xsd:attribute name=\"mimetype\" type=\"xsd:string\" msdata:Ordinal=\"4\" />");
            sw.WriteLine("              <xsd:attribute ref=\"xml:space\" />");
            sw.WriteLine("            </xsd:complexType>");
            sw.WriteLine("          </xsd:element>");
            sw.WriteLine("          <xsd:element name=\"resheader\">");
            sw.WriteLine("            <xsd:complexType>");
            sw.WriteLine("              <xsd:sequence>");
            sw.WriteLine("                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"1\" />");
            sw.WriteLine("              </xsd:sequence>");
            sw.WriteLine("              <xsd:attribute name=\"name\" type=\"xsd:string\" use=\"required\" />");
            sw.WriteLine("            </xsd:complexType>");
            sw.WriteLine("          </xsd:element>");
            sw.WriteLine("        </xsd:choice>");
            sw.WriteLine("      </xsd:complexType>");
            sw.WriteLine("    </xsd:element>");
            sw.WriteLine("  </xsd:schema>");
            sw.WriteLine("  <resheader name=\"resmimetype\">");
            sw.WriteLine("    <value>text/microsoft-resx</value>");
            sw.WriteLine("  </resheader>");
            sw.WriteLine("  <resheader name=\"version\">");
            sw.WriteLine("    <value>2.0</value>");
            sw.WriteLine("  </resheader>");
            sw.WriteLine("  <resheader name=\"reader\">");
            sw.WriteLine("    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>");
            sw.WriteLine("  </resheader>");
            sw.WriteLine("  <resheader name=\"writer\">");
            sw.WriteLine("    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>");
            sw.WriteLine("  </resheader>");
            sw.WriteLine("  <metadata name=\"menuStrip.TrayLocation\" type=\"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\">");
            sw.WriteLine("    <value>232, 17</value>");
            sw.WriteLine("  </metadata>");
            sw.WriteLine("  <assembly alias=\"System.Drawing\" name=\"System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\" />");
            sw.WriteLine("  <data name=\"newToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAQpJREFUOE+t021L");
            sw.WriteLine("        wlAUB3C/VH6H+hr5jSRfiPSiFiEDgwWGRhZm0EoQcQN7QoblWPNp6py6h3/cwWDkvde98MDhvrnndznn");
            sw.WriteLine("        cFOpfYVU7+J/lmoKipUWhGs5TO5bpJgVBfEB6aMMH7m6V5nAiVBB9UnhI+Jtmwlkz27C4iiprVyWm0zA");
            sw.WriteLine("        9XwQJIKowLn0TAWCIIDtbGCM7BA4ODymD/O09EgF1hsPY8uBplt8IF+sbQGeH2BmrzEwF3jXxnwgd1Hd");
            sw.WriteLine("        ApyVC3OyRO9nis6HyQdIf/Egg5vOV+gbM3R7I7yqenIgPrjP/gTtt180Wt/Jgfjg1K8h5M4Ady9aMiDa");
            sw.WriteLine("        N+tkrjHaMbmwK/f1gUPnD9/19ZYU1J08AAAAAElFTkSuQmCC");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"openToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAl9JREFUOE+9k1tI");
            sw.WriteLine("        E2AYhnfRRVcWaVEIRpaEXYiBIdVFSNJJUUqzwkgTylMHDMU2D206dXMnp650mNt0TZ1WlmFYIRSKRGip");
            sw.WriteLine("        o8S0LCgqxcxQydPT3EKTLPCmH96bn+99vvf7fn6B4H+cnGIzEq2Fy3ITeToraUojy+obnawjLF7lMJ0X");
            sw.WriteLine("        lpNlh6VIDUQlFyOoM2tYSo01sr92SUgrITxRRWh8gRPQ22VkYqTWoR/DFqYGDVhNKurN0iUhYQlqQuO0");
            sw.WriteLine("        BMcWIaitUDM+XLXIPPOphClbElXlcipLczEUZ6EvyOSaUkSRLHUxtNqoYPyLcb7zrN1MrwhssUvqD8CN");
            sw.WriteLine("        MhnfP+odsefMTXUKh+5b82mwyLhdmYvVkI1FL8Gku8J1bTqlahE6hdCZplKfy+i7QuZiv2kRU1+lZuaN");
            sw.WriteLine("        BAaki/XWftefBj3J8DKRzpoILsaEIDDosvnWJ4f3Su5Uq2h7oHQW/T7CiyhoD2e6NYiJhwG8rvDh3Kn9");
            sw.WriteLine("        TkCZVszXVxIGWjOotyiZ7RdDd5wT0BljNx5nui2EieZ9jDbuZqhuO5J4L04EujmXWaLOYKhLyE2zgo4n");
            sw.WriteLine("        9iQ9SXbAGeg4yezTw0w+PshY0x6G6/34XO1Ne85qIoM88dvq4gTo8kV0N2dyy5wPfZnw3B732VEmW4IZ");
            sw.WriteLine("        exTASIM/g1YfPhi3YFO6Io7djO8294WnLMxLpdYkx3Y3gXaNYF5tyhU0y1ZyL2sVNelrMaS6c/XSRiIP");
            sw.WriteLine("        bcLf12MBoJGmoBGfJU8YTdqFY47FnI4I5MiBnezd5cMOHy+8Pd3x2ODGujUurHf9FX1Zv+kfxT8BMS7u");
            sw.WriteLine("        X4BvNFkAAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"saveToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAilJREFUOE+tk91L");
            sw.WriteLine("        k3EUx/cvdN9N0EW3NTWGa7EaPOUcyqphWBG9PZEv5dJlmqhYmUYtXyBb4dJJy+kknFT4BqZIjaFMJUsz");
            sw.WriteLine("        V7TEoabYRDD49ju/6Pm1Mm/qB+fy8znPOef7qFT/4z17GgWVr30Zbd4lPHYvoLEhgvuOGdTWfIL9dgg3");
            sw.WriteLine("        yqdQWjKBwoLXyMsdxYXzQSi9CeztAWqqV7HRW1ldgzGtF4fTnvBSBN7WRS6orPjyV57gyMIKdpufQ62W");
            sw.WriteLine("        YTnkEQL3o3kuKC35vK7gJ/w+vIg4kw8Fl6dxwNwkBM76WS64ZHv3h+BXeGQygm2SF9accaSmOIWg7m6Y");
            sw.WriteLine("        C7KzRmMEv8ODwTA2692Q5QBMJocQVFd95AL5TEARrAf3+D9gU2IDjhx9gaSkWiG4WTmN7i6wUwLHT76C");
            sw.WriteLine("        5dgA3zYtjGamz6bOP+A+HLR0QpLsQnC1bBIdPrAMAE2ub+zuX1F+fY4vlRZGM2dmBBU4ObUdBkOFEFwp");
            sw.WriteLine("        HIenGXjoXGPBicKYnhNT5hM2pJ8r4p2TUxi83wO9vkwIbHljDAaq7kR5ZxJQSOK0EobezmJsag5y7jXs");
            sw.WriteLine("        NbZxWLvHBZ2uSAgolo57UD6bBASfzb+FN6F5hGaWcLHYjni9i8GNiN/1ANrEfCHIzBhmcy/zmbcaPNiy");
            sw.WriteLine("        Q0JLRz98XYPo7vNj4OUQ9pksUOvqkcDg7Zo6aDTWWMHpU/08npQwCgndmU5F26aF0czUlYrgnQnZQvAv");
            sw.WriteLine("        f/R3bGg6a0rM640AAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"printToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAi5JREFUOE+tk+1P");
            sw.WriteLine("        klEYxlkf+39aW1utttpM1NJqwzIjnM5J0TAmBSHLCFNJ7cVaUqNH5gLdQxY4RkxrbDqDzBJdOt0SKLAg");
            sw.WriteLine("        TEDDeLl6nkPgSNz64L1d29nZ7ut3nfucw+HsdBltUxi0f4RpdGZb0SNubMtlDd67ffi3Nn4n4fGvYNA6");
            sw.WriteLine("        gZJzV8GtvrLVhG1mlUqlEQxH4HB9IhqyO2Ewj8M140WVSE0MCibQW1z4/DWcB2fJq9E4ZheXQduchFyQ");
            sw.WriteLine("        rqXHwSrJ0L2BUB7d6piG0+1BZYMKx87LodG+wL0+62YKRecz0jzinCd0lpolB0IxzC+F0Guwo5Qvg7Kr");
            sw.WriteLine("        H0/oMZQyRuQYTW16qB8OgTK/wyOjA/qXb3GXsuH6HSPELVrwGztQXqNA8VkpTl+4iW6dBRKVFsXZId5+");
            sw.WriteLine("        +gqRWHzL1NmNRDKF9XiCzOB7eB1fvkUhb6dQJ+1iEsgyCVQPTDC/+YDndhco02vc7xuGumcAsnYdRM09");
            sw.WriteLine("        EFzuAK+hBccFchSdkeAis1cpvIGDJ0UZA2X3AHz+YMEEkbUNeAKr2A0O0S6KA764DSXVUuw5WpMxaO40");
            sw.WriteLine("        YHpuCczccsWuf0QTmPOtYWw2TJotfw1O1CpwoEK4aaDUUND00vAG4wjH0vD/TGNxOYWJhV8Ynoyi37FC");
            sw.WriteLine("        yFkd4YlJcy5BvaQVsls6jE76yN3+j/IM2GNIVI9RUadEmeAauMwzLapqwmFeIw6duoT95ULsK6vHXm5t");
            sw.WriteLine("        jpyj78RP/gPgHTGb+rLlcwAAAABJRU5ErkJggg==");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"printPreviewToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAdVJREFUOE+t099L");
            sw.WriteLine("        U2Ecx3H/GemqiygrwpsIzESJqJzzx4VOnMQkKFToZjcZQf5oDd0SXa0m/sJjnJU5K5eb1oIig8nUiwah");
            sw.WriteLine("        brLUInG6zb3znLB2PNu68QtfHjjweX2f5+E8OTmHUaJnnoMtTPoZdH3G4fwgd9Y5UjhT9Qy/5WRRbXZk");
            sw.WriteLine("        1D2XEeh0uJiY8WdHhl99yQiYn7yUw/ud9ij9Yx9VQDy2xdTMFJZHdm63mbhr6iS/RJf+Lp6KPgWwvb2F");
            sw.WriteLine("        OD7Oa880och3voUjOAQRnaGRKsMtNWITvArAPe3F5fbI3+IJ+BXdZWU9gdk2hLZarwa6BycVQJfNzvJq");
            sw.WriteLine("        5G84/CPOwnIMp3eesspKNdDVN6EAOizdLK2uyZPDG4m98A6+hSgPR3xcLi1VA9JNp5YgOhFdbkIbe5NX");
            sw.WriteLine("        YrxfjPLi0yYNzUbKyssxtTQqkVQgmUzyNRjkXoeZ3oHnPPMGsAo+GpqMaLRXGbhfhWi9rkRSgZ1YgvWf");
            sw.WriteLine("        UfyBAA8sFvTXDNTU1lGhuYT55jlCj8+z+64ae/uNf8g+IK2ZuuVOK/UlJ5g15rFkPcuaU0OT/uKfo0ih");
            sw.WriteLine("        vAu6/3ZB0RX0xcd503yausKjaItPZX9k6X5baRf5x45QeCZXDv8Gd10kHhF4wJIAAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"undoToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAZlJREFUOE+1ktsr");
            sw.WriteLine("        w2EYx/0p7sidnIkWlmMsSQxzlrkxhxySOV4oM9qSHG+ctuVsLCmxG+5QcoOUhZxP++324zdKDit+ylvP");
            sw.WriteLine("        3fP5vM/zfl8vr/88RqsL45LA6JrA1KaAWSyLXeBXd+rnBdzVNSvQanLSPO5kZPVN4FHSZblicvvN7oZ6");
            sw.WriteLine("        FlyUGO6I1WwTUWIjJN9KXP0xAzYPArexdfyS0Q2BZpNA76ILle4CuWaLqLI1gnKnia1YJixviozOOybE");
            sw.WriteLine("        vm9rVA9cUD74TOWwkyzdI+FFVkIL5kXY/NqsaLLhnzmGvO6Qlgnnd0Gh/pykthuyu5+pHb7BN8lAYI7p");
            sw.WriteLine("        vdFbpiWq3I689ogWswdBWvsZwdUnJLRdvU5SoDtFO3b7WaC2k6g9p92TILregazqgHD1FoF5K/grZ/BN");
            sw.WriteLine("        7nsXBKvmiFRvoui4RtPv+DnKr1H5JBrE8Q8pNd7TLcb7q7/wsSm0eJ30zgcytDvSYJX+HlnFLqkdD6Q0");
            sw.WriteLine("        7OOnGJImiG90iPAT8TV7BCgt0mD3Ckox1piaA4JyZqXDkh/qL8ALl3QQwQeUb4QAAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"redoToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAZNJREFUOE/Nkt8r");
            sw.WriteLine("        Q2EcxvenuMGSdsE2mptdGGYrU7NiZsoi5HdhyTY/VohdbKSxTdjM1mrKr6SEm7njSolQu9FaRue814/3");
            sw.WriteLine("        HFHr0CgXTj1X5/l+3ud9vq9I9Fdf9JwgckYQpgocE8zHWVjXWfyIzw1z8h8R2IMsJrZZOKMsRjcohCon");
            sw.WriteLine("        hBv2HhJUWx9R1roHheUAyp4ELB4GAz4WA/53yNYFgXLwWggMnRIYZp4hN66hsjcOmSnGS27eRRuFdHgZ");
            sw.WriteLine("        dFNIgPoqOhN82qxUjhAL1cgdCmvnoRs/5H/KTBGUGsMo1q2iYfaVT9K1wkBq3hcmcEQ4wD0K1C7kKW2f");
            sw.WriteLine("        BmnzNsQaN4Z9aRgXGGgm05A0bAoBUxSgsT9RsycLsLhPwIk7WT2ZgnzoAWLtkhDQv5xEvTONksZYFoAr");
            sw.WriteLine("        TEHvLDUfQKIP8sP5VXNCwMIOQbsnA9XwLe3BnWUQFPbdTg22S+hnXlBuOcm9968gRbTturFr1E2/QNl3");
            sw.WriteLine("        hRZX5vcgDqK13kDnZFAzlvw94COZxpFCE11bzif8LwxvxTcHtycxLyQAAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"cutToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAaNJREFUOE+V07tL");
            sw.WriteLine("        W2EcxnH/AgcHJ6GjWifxVrR4K81gokdOYpoSpcHEYGuJCDFqFNEajdeUGgmIWomCkMugB4cWiqVLK95A");
            sw.WriteLine("        xU1EBC+oOGq3rzkRnOTw+s6/5/Pw3lJSBBaJJTD2MBJRfjOzpDwG1PDh8Sndg1NiSHAuznhoEe/gdDJw");
            sw.WriteLine("        e/efmPILx2evGKCGJmciBGdjajlnF9c4W3tIT0sVByIra4wGw6xv7fLn7w7mDy3PA8LRH4xNLTARCtPR");
            sw.WriteLine("        H8AgW8Xb1S2MfAvj7gtgd/VS1/ARnV5+HqAiNpcPs60Nk3MIyeYTB6zDN1hGrjANHKP3bGDo2KbGu4+h");
            sw.WriteLine("        fRNdy09tyOK/5P34Dca+Q0qs3ymQA+hca0jdB7xNhIvr57UBs/8c89ApFc7lZLhAnkDv3kDqOqCyWSHf");
            sw.WriteLine("        +FUbqPOdIPcfUdmkkFc7lgRqE+3Vndu8soTIKf+kDRi/HCF59ii1x8k1PByc3v2P0sYo2a/tZLzI1gZq");
            sw.WriteLine("        unYpa4wl2kfJLHyXfDxljjgvS2xkFlnIk/zawJvmVQpNk2QVN5Bb1SN+dcJf9YnBe5GF6RjGCzzaAAAA");
            sw.WriteLine("        AElFTkSuQmCC");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"copyToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAd1JREFUOE+lk99L");
            sw.WriteLine("        U2EYgP1TShlSXdt9RGpSYFB4UVCQRVe70KuuIsMgqxkLnG0Tc5ayzc70RKSLlJlraTJzrl+TlkFtMJVz");
            sw.WriteLine("        dDmnZ/a480mzLdgEX3juvvd5f3zfV1a235DHv6AjjYUFzuEgvfI77tpk9uTWkwvDMRTgastTjtY1lpZ4");
            sw.WriteLine("        RsN5+ZmtP3T0vcLrD3O+qb20xDkyIwTeCEgfIBRVeeh4iTSh4h5XcPkUHo8omAeXBRfvx/K76pUDuQ42");
            sw.WriteLine("        NjOoq2liiaQQFEZr/yJVV/yC3H7sbp841+3fxDSsclP6RXNPlL7XS/8JmqwJ5EmVIw1DAiGxZOfV515L");
            sw.WriteLine("        aSwqKRZiK3yKLmF/EReCNikjCM2vcMkU53DDcw6dHaCy/smOQJ93Pa3lKhvtEa5ZPvLAtZDXgfpbY/7n");
            sw.WriteLine("        Ov65VazSNIbTXbsCNZnm8/cEM19jBEI/GHv/jZbuneu90Z/EaIlz4V6EM7dmBVZpCkNd566g6uRlCmk2");
            sw.WriteLine("        zwqBlh0voWjMRdcYDap43izzaCBARY25+BtpbJ0Ugn8r/+2g0/2W8hOm4oJz132kNrawDwaxeaaxPpsS");
            sw.WriteLine("        lfVki3OCg8fvFBfUGL3ZbbsElfUODKdsVNR2UF7dnk1u48Cx26Wf+Z4+034PbQPvwt9VHJdeuQAAAABJ");
            sw.WriteLine("        RU5ErkJggg==");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"pasteToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAk9JREFUOE+1k1lI");
            sw.WriteLine("        lGEUhn/owm6KFuqqq4LoJooIqouMwixMmzASMzInYlRKRpk0HVJLU3Rym7RsjFwGNbdKlJQiERKHdg3H");
            sw.WriteLine("        aJFIjZwmaxbXyeLp/78YclovogMv5+Z7l3M4nyT9j+pqzabjagbNFSloo3bxR4+m6kJmoyL/AA5bDeO2");
            sw.WriteLine("        Swz155GkCaQwS8d5gx5jVqKAj6BCnnI24nE1MOWoxVyqY2K0iqRoFU+7kzl5LJhk9XpsXYcYbVuONnL3");
            sw.WriteLine("        zwIK2eOq40L2QXoseTjfFDPSr+eV5TAtZSqiI/ypSV3Go0KJ2P0/jNRQlS/cPc4rGFIjSdeFo48L40Rs");
            sw.WriteLine("        KDqNinh1MDERARRpVwiB8CB/3wS15QamnfVM201MDOdgfxKHtWqxQF/lInpK53Hf6CfICgI2rfUVMJuy");
            sw.WriteLine("        mbRXMDmYycSzo4w/3ouzdT4FlW3kmJo5da6eZIOZ+IwyolOMRCbk+gqUl2QwNmRkvF/D2INg3HfW8e76");
            sw.WriteLine("        EkH2lmfmMw7XFIMjDsJiThMSpf8uUlaQhvN5Ju57gbg7V+NqX8pQpSSclSq/1iVgquugb8AmyLe6rewI");
            sw.WriteLine("        VX8TKclN4UPvcVwdq3DeWIi90Y+By5KI/WnmCx/dsvNbB30vbVh6XxMUEU+gTN62cw/+m7cgFZ1JxH43");
            sw.WriteLine("        RiYv4H3TXIar52C9IKGVZ1ZiexNclBMUm9tp6bSKrmDjmpVIZ9MTxIF4t+ztGnlhs51vW14IcuPNHura");
            sw.WriteLine("        HvoKFKQdkS9MhTp0OyFbNwhlZdvKzF63X3WR4He1T9628uBv+OfP/BWTNfjZ3FJ2xwAAAABJRU5ErkJg");
            sw.WriteLine("        gg==");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"indexToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAqRJREFUOE+Fk1tI");
            sw.WriteLine("        01EYwOdr0HOJvfdm9FpPBZFQDyFBCb71ZoZooZiXMeetnJs6L9O8m2s6clNRN7VdtDmnS5uXleQQ3Zzm");
            sw.WriteLine("        XRMvYfz6b6KVZn3wceBwfr/zfecSIjojqurcbG98F21u7ogODhBlZFwPOWvtqfkAHEiXa5Wa2inUbyaR");
            sw.WriteLine("        SgdIT7fxX8kR7HCsUqJyYbGu8M7ko9c0i6bJjSTDfrboJNzRuYjNtk2/ZQurZYPenlV0unkaGieEigb/");
            sw.WriteLine("        FJ2E29r9mE0bdHUt09q2SIsANmtnaaifRqVyI5ePkpk9eNjSSVin9wVBvd5Pk2aO+noPlZVTlJRMoFCM");
            sw.WriteLine("        kJMzzNMEE7FPDBzDLtd6sGdN0yxa7Rzq1zPU1kzT1OpD1rxOVNEekbItJJU+5CVjxDw2oGsdOBRomseR");
            sw.WriteLine("        K5zU1Hl4VfGZsmI3ysJxqrR+4jVQboEPc0J6obbvgAfZXlpMbqa9M4jEEisa7RgSaR+ygiFk+SO8zHNS");
            sw.WriteLine("        3eghTg3aIZhf2CQ118jth1XBUe/Y4WackzylA9GzRAMziz6M5lGSU3oQi63BO89qWEJlJhhH8PCoNygp");
            sw.WriteLine("        qrUjVS8QHWNElJqupkDZzcKmn9llob9CM9KsPu7lrqEfPRQEIlBFQHDtbhmljSM09O8TerkU0Yv8QWHn");
            sw.WriteLine("        XiENmGzjrO1/xWL/RITYh+43wda3vSCcmGlkekk4C/MuF8Jyfr1MSWYfKWk9FBRb8fjnUHXOI2/fOa7A");
            sw.WriteLine("        Luwur3TgEeBx4TATitxERFadftopaSaeC6IO8xduJXykw7nP7g8wvPcSfqOAyXko7Vjh/FUl2Urz3/9G");
            sw.WriteLine("        mthMUnI3dS2TXIkyIq6eQWPbpdGyQ7xiknPhCmKT3tI/4vv351JVOMlX2ol+1EropSwuhqVy5345MpWV");
            sw.WriteLine("        wTF/EP4JaStxoteu5NMAAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"searchToolStripMenuItem.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAtpJREFUOE+Vk1lP");
            sw.WriteLine("        k1EQhutC/CHGGBM1MWpc4oVLSFGhRogfFAREqVCQshSoRRAQSlFUSitQwqKtqChBEepH3IKCC4agxoi4");
            sw.WriteLine("        YdSw1FTQCFpE5LEfF1aCXjhX55yced7MzDuzZH9ERrGIdGVyUjbXZ7Zsns8c2ei3cdnIV7ds0vNWnhMy");
            sw.WriteLine("        68//086ZJS0ctIjY29q5/roLsa8Fe28uSWIMguEk0Rl2VJmnpwRmxAGTiMEm0tB9hYdfntIzNkBaYwGm");
            sw.WriteLine("        V1nEXVaw0VhEmKGDUH0NUbrq6RDdMQdZFgcVnWZanDZuDXfSNdpNj9tFfX8zMVYjcusz1lgaWVumQkgu");
            sw.WriteLine("        ZmdKuRciAfLsItZHRZT16rC9t2DvM1L+xE782XrUFUOEHXvL0nNBLDrjz/r8REISSryA1CNNVDjeYRBN");
            sw.WriteLine("        7HuwjeTOALQ2PWm1nrKqLmEw16AvKibSHMfiUjmLjwQSpC7yApKMjVReGyOnshLFOTlbxVBU5WZKTzdz");
            sw.WriteLine("        o+0Og66PvHe6qL3YRESmhvkFfiiiDV6AJr8Bs8PNgVoXkXoV/pV70NbmcbW1DSl+TMCI+ycDwxNYai6w");
            sw.WriteLine("        ThPElshsL2DfoXqSy96gqfqO2txLYIbGM86j9H9w/U52fv7Bi/5xmtufExQRjm+o3guIyz1PfOFtok98");
            sw.WriteLine("        Jco0TGj+XfYXGuj7MDSl7Pw04Un+TscLNxUNHWwXgtkgaL0AdU7dlEl2FzxEediJPLcTIV9L09VWBj95");
            sw.WriteLine("        lAfGuf/SzZWuURJ02QQIu8jLSp3uBclhETo7IQfvsjTVyDJtOLHaFKrrHDS292C92EFCejbByh3UmcJp");
            sw.WriteLine("        siZSYkibDpEcpkwsZXOSGV9VPAq1ESE2B2HnbgIFJWHB27FoNzF4Ss7Pe1HYjqfMhEgOk0wizVkaldRt");
            sw.WriteLine("        qWFSzWEKX2IDVvA4eyV91g0MNQeTHrPt77vxr42TADH+y7mpW81evyUo/Vf9H0ACS5B1yxbit3bBVPIv");
            sw.WriteLine("        gLX/NgWpi8gAAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <metadata name=\"toolStrip.TrayLocation\" type=\"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\">");
            sw.WriteLine("    <value>339, 17</value>");
            sw.WriteLine("  </metadata>");
            sw.WriteLine("  <data name=\"newToolStripButton.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAQpJREFUOE+t021L");
            sw.WriteLine("        wlAUB3C/VH6H+hr5jSRfiPSiFiEDgwWGRhZm0EoQcQN7QoblWPNp6py6h3/cwWDkvde98MDhvrnndznn");
            sw.WriteLine("        cFOpfYVU7+J/lmoKipUWhGs5TO5bpJgVBfEB6aMMH7m6V5nAiVBB9UnhI+Jtmwlkz27C4iiprVyWm0zA");
            sw.WriteLine("        9XwQJIKowLn0TAWCIIDtbGCM7BA4ODymD/O09EgF1hsPY8uBplt8IF+sbQGeH2BmrzEwF3jXxnwgd1Hd");
            sw.WriteLine("        ApyVC3OyRO9nis6HyQdIf/Egg5vOV+gbM3R7I7yqenIgPrjP/gTtt180Wt/Jgfjg1K8h5M4Ady9aMiDa");
            sw.WriteLine("        N+tkrjHaMbmwK/f1gUPnD9/19ZYU1J08AAAAAElFTkSuQmCC");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"openToolStripButton.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAl9JREFUOE+9k1tI");
            sw.WriteLine("        E2AYhnfRRVcWaVEIRpaEXYiBIdVFSNJJUUqzwkgTylMHDMU2D206dXMnp650mNt0TZ1WlmFYIRSKRGip");
            sw.WriteLine("        o8S0LCgqxcxQydPT3EKTLPCmH96bn+99vvf7fn6B4H+cnGIzEq2Fy3ITeToraUojy+obnawjLF7lMJ0X");
            sw.WriteLine("        lpNlh6VIDUQlFyOoM2tYSo01sr92SUgrITxRRWh8gRPQ22VkYqTWoR/DFqYGDVhNKurN0iUhYQlqQuO0");
            sw.WriteLine("        BMcWIaitUDM+XLXIPPOphClbElXlcipLczEUZ6EvyOSaUkSRLHUxtNqoYPyLcb7zrN1MrwhssUvqD8CN");
            sw.WriteLine("        MhnfP+odsefMTXUKh+5b82mwyLhdmYvVkI1FL8Gku8J1bTqlahE6hdCZplKfy+i7QuZiv2kRU1+lZuaN");
            sw.WriteLine("        BAaki/XWftefBj3J8DKRzpoILsaEIDDosvnWJ4f3Su5Uq2h7oHQW/T7CiyhoD2e6NYiJhwG8rvDh3Kn9");
            sw.WriteLine("        TkCZVszXVxIGWjOotyiZ7RdDd5wT0BljNx5nui2EieZ9jDbuZqhuO5J4L04EujmXWaLOYKhLyE2zgo4n");
            sw.WriteLine("        9iQ9SXbAGeg4yezTw0w+PshY0x6G6/34XO1Ne85qIoM88dvq4gTo8kV0N2dyy5wPfZnw3B732VEmW4IZ");
            sw.WriteLine("        exTASIM/g1YfPhi3YFO6Io7djO8294WnLMxLpdYkx3Y3gXaNYF5tyhU0y1ZyL2sVNelrMaS6c/XSRiIP");
            sw.WriteLine("        bcLf12MBoJGmoBGfJU8YTdqFY47FnI4I5MiBnezd5cMOHy+8Pd3x2ODGujUurHf9FX1Zv+kfxT8BMS7u");
            sw.WriteLine("        X4BvNFkAAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"saveToolStripButton.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAilJREFUOE+tk91L");
            sw.WriteLine("        k3EUx/cvdN9N0EW3NTWGa7EaPOUcyqphWBG9PZEv5dJlmqhYmUYtXyBb4dJJy+kknFT4BqZIjaFMJUsz");
            sw.WriteLine("        V7TEoabYRDD49ju/6Pm1Mm/qB+fy8znPOef7qFT/4z17GgWVr30Zbd4lPHYvoLEhgvuOGdTWfIL9dgg3");
            sw.WriteLine("        yqdQWjKBwoLXyMsdxYXzQSi9CeztAWqqV7HRW1ldgzGtF4fTnvBSBN7WRS6orPjyV57gyMIKdpufQ62W");
            sw.WriteLine("        YTnkEQL3o3kuKC35vK7gJ/w+vIg4kw8Fl6dxwNwkBM76WS64ZHv3h+BXeGQygm2SF9accaSmOIWg7m6Y");
            sw.WriteLine("        C7KzRmMEv8ODwTA2692Q5QBMJocQVFd95AL5TEARrAf3+D9gU2IDjhx9gaSkWiG4WTmN7i6wUwLHT76C");
            sw.WriteLine("        5dgA3zYtjGamz6bOP+A+HLR0QpLsQnC1bBIdPrAMAE2ub+zuX1F+fY4vlRZGM2dmBBU4ObUdBkOFEFwp");
            sw.WriteLine("        HIenGXjoXGPBicKYnhNT5hM2pJ8r4p2TUxi83wO9vkwIbHljDAaq7kR5ZxJQSOK0EobezmJsag5y7jXs");
            sw.WriteLine("        NbZxWLvHBZ2uSAgolo57UD6bBASfzb+FN6F5hGaWcLHYjni9i8GNiN/1ANrEfCHIzBhmcy/zmbcaPNiy");
            sw.WriteLine("        Q0JLRz98XYPo7vNj4OUQ9pksUOvqkcDg7Zo6aDTWWMHpU/08npQwCgndmU5F26aF0czUlYrgnQnZQvAv");
            sw.WriteLine("        f/R3bGg6a0rM640AAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"printToolStripButton.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAi5JREFUOE+tk+1P");
            sw.WriteLine("        klEYxlkf+39aW1utttpM1NJqwzIjnM5J0TAmBSHLCFNJ7cVaUqNH5gLdQxY4RkxrbDqDzBJdOt0SKLAg");
            sw.WriteLine("        TEDDeLl6nkPgSNz64L1d29nZ7ut3nfucw+HsdBltUxi0f4RpdGZb0SNubMtlDd67ffi3Nn4n4fGvYNA6");
            sw.WriteLine("        gZJzV8GtvrLVhG1mlUqlEQxH4HB9IhqyO2Ewj8M140WVSE0MCibQW1z4/DWcB2fJq9E4ZheXQduchFyQ");
            sw.WriteLine("        rqXHwSrJ0L2BUB7d6piG0+1BZYMKx87LodG+wL0+62YKRecz0jzinCd0lpolB0IxzC+F0Guwo5Qvg7Kr");
            sw.WriteLine("        H0/oMZQyRuQYTW16qB8OgTK/wyOjA/qXb3GXsuH6HSPELVrwGztQXqNA8VkpTl+4iW6dBRKVFsXZId5+");
            sw.WriteLine("        +gqRWHzL1NmNRDKF9XiCzOB7eB1fvkUhb6dQJ+1iEsgyCVQPTDC/+YDndhco02vc7xuGumcAsnYdRM09");
            sw.WriteLine("        EFzuAK+hBccFchSdkeAis1cpvIGDJ0UZA2X3AHz+YMEEkbUNeAKr2A0O0S6KA764DSXVUuw5WpMxaO40");
            sw.WriteLine("        YHpuCczccsWuf0QTmPOtYWw2TJotfw1O1CpwoEK4aaDUUND00vAG4wjH0vD/TGNxOYWJhV8Ynoyi37FC");
            sw.WriteLine("        yFkd4YlJcy5BvaQVsls6jE76yN3+j/IM2GNIVI9RUadEmeAauMwzLapqwmFeIw6duoT95ULsK6vHXm5t");
            sw.WriteLine("        jpyj78RP/gPgHTGb+rLlcwAAAABJRU5ErkJggg==");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"printPreviewToolStripButton.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAdVJREFUOE+t099L");
            sw.WriteLine("        U2Ecx3H/GemqiygrwpsIzESJqJzzx4VOnMQkKFToZjcZQf5oDd0SXa0m/sJjnJU5K5eb1oIig8nUiwah");
            sw.WriteLine("        brLUInG6zb3znLB2PNu68QtfHjjweX2f5+E8OTmHUaJnnoMtTPoZdH3G4fwgd9Y5UjhT9Qy/5WRRbXZk");
            sw.WriteLine("        1D2XEeh0uJiY8WdHhl99yQiYn7yUw/ud9ij9Yx9VQDy2xdTMFJZHdm63mbhr6iS/RJf+Lp6KPgWwvb2F");
            sw.WriteLine("        OD7Oa880och3voUjOAQRnaGRKsMtNWITvArAPe3F5fbI3+IJ+BXdZWU9gdk2hLZarwa6BycVQJfNzvJq");
            sw.WriteLine("        5G84/CPOwnIMp3eesspKNdDVN6EAOizdLK2uyZPDG4m98A6+hSgPR3xcLi1VA9JNp5YgOhFdbkIbe5NX");
            sw.WriteLine("        YrxfjPLi0yYNzUbKyssxtTQqkVQgmUzyNRjkXoeZ3oHnPPMGsAo+GpqMaLRXGbhfhWi9rkRSgZ1YgvWf");
            sw.WriteLine("        UfyBAA8sFvTXDNTU1lGhuYT55jlCj8+z+64ae/uNf8g+IK2ZuuVOK/UlJ5g15rFkPcuaU0OT/uKfo0ih");
            sw.WriteLine("        vAu6/3ZB0RX0xcd503yausKjaItPZX9k6X5baRf5x45QeCZXDv8Gd10kHhF4wJIAAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <data name=\"helpToolStripButton.Image\" type=\"System.Drawing.Bitmap, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("    <value>");
            sw.WriteLine("        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8");
            sw.WriteLine("        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAqRJREFUOE+Fk1tI");
            sw.WriteLine("        01EYwOdr0HOJvfdm9FpPBZFQDyFBCb71ZoZooZiXMeetnJs6L9O8m2s6clNRN7VdtDmnS5uXleQQ3Zzm");
            sw.WriteLine("        XRMvYfz6b6KVZn3wceBwfr/zfecSIjojqurcbG98F21u7ogODhBlZFwPOWvtqfkAHEiXa5Wa2inUbyaR");
            sw.WriteLine("        SgdIT7fxX8kR7HCsUqJyYbGu8M7ko9c0i6bJjSTDfrboJNzRuYjNtk2/ZQurZYPenlV0unkaGieEigb/");
            sw.WriteLine("        FJ2E29r9mE0bdHUt09q2SIsANmtnaaifRqVyI5ePkpk9eNjSSVin9wVBvd5Pk2aO+noPlZVTlJRMoFCM");
            sw.WriteLine("        kJMzzNMEE7FPDBzDLtd6sGdN0yxa7Rzq1zPU1kzT1OpD1rxOVNEekbItJJU+5CVjxDw2oGsdOBRomseR");
            sw.WriteLine("        K5zU1Hl4VfGZsmI3ysJxqrR+4jVQboEPc0J6obbvgAfZXlpMbqa9M4jEEisa7RgSaR+ygiFk+SO8zHNS");
            sw.WriteLine("        3eghTg3aIZhf2CQ118jth1XBUe/Y4WackzylA9GzRAMziz6M5lGSU3oQi63BO89qWEJlJhhH8PCoNygp");
            sw.WriteLine("        qrUjVS8QHWNElJqupkDZzcKmn9llob9CM9KsPu7lrqEfPRQEIlBFQHDtbhmljSM09O8TerkU0Yv8QWHn");
            sw.WriteLine("        XiENmGzjrO1/xWL/RITYh+43wda3vSCcmGlkekk4C/MuF8Jyfr1MSWYfKWk9FBRb8fjnUHXOI2/fOa7A");
            sw.WriteLine("        Luwur3TgEeBx4TATitxERFadftopaSaeC6IO8xduJXykw7nP7g8wvPcSfqOAyXko7Vjh/FUl2Urz3/9G");
            sw.WriteLine("        mthMUnI3dS2TXIkyIq6eQWPbpdGyQ7xiknPhCmKT3tI/4vv351JVOMlX2ol+1EropSwuhqVy5345MpWV");
            sw.WriteLine("        wTF/EP4JaStxoteu5NMAAAAASUVORK5CYII=");
            sw.WriteLine("</value>");
            sw.WriteLine("  </data>");
            sw.WriteLine("  <metadata name=\"statusStrip.TrayLocation\" type=\"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\">");
            sw.WriteLine("    <value>17, 17</value>");
            sw.WriteLine("  </metadata>");
            sw.WriteLine("  <metadata name=\"toolTip.TrayLocation\" type=\"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\">");
            sw.WriteLine("    <value>137, 17</value>");
            sw.WriteLine("  </metadata>");
            sw.WriteLine("  <metadata name=\"$this.TrayHeight\" type=\"System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\">");
            sw.WriteLine("    <value>51</value>");
            sw.WriteLine("  </metadata>");
            sw.WriteLine("</root>");

            sw.Close();
            file.Close();

            #endregion

            path = Path.Combine(path, "Properties");

            #region 创建AssemblyInfo.cs类
            //filepath = Path.Combine(path, "AssemblyInfo.cs");

            //file = new FileStream(filepath, FileMode.Create);
            //sw = new StreamWriter(file, Encoding.UTF8);
            //sw.WriteLine("using System.Reflection;");
            //sw.WriteLine("using System.Runtime.CompilerServices;");
            //sw.WriteLine("using System.Runtime.InteropServices;");
            //sw.WriteLine("");
            //sw.WriteLine("// 有关程序集的常规信息通过下列属性集");
            //sw.WriteLine("// 控制。更改这些属性值可修改");
            //sw.WriteLine("// 与程序集关联的信息。");
            //sw.WriteLine("[assembly: AssemblyTitle(\"" + BaseParams.RunNameSpace + "\")]");
            //sw.WriteLine("[assembly: AssemblyDescription(\"\")]");
            //sw.WriteLine("[assembly: AssemblyConfiguration(\"\")]");
            //sw.WriteLine("[assembly: AssemblyCompany(\"Microsoft\")]");
            //sw.WriteLine("[assembly: AssemblyProduct(\"" + BaseParams.RunNameSpace + "\")]");
            //sw.WriteLine("[assembly: AssemblyCopyright(\"Copyright ? Microsoft 2008\")]");
            //sw.WriteLine("[assembly: AssemblyTrademark(\"\")]");
            //sw.WriteLine("[assembly: AssemblyCulture(\"\")]");
            //sw.WriteLine("");
            //sw.WriteLine("// 将 ComVisible 设置为 false 使此程序集中的类型");
            //sw.WriteLine("// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,");
            //sw.WriteLine("// 则将该类型上的 ComVisible 属性设置为 true。");
            //sw.WriteLine("[assembly: ComVisible(false)]");
            //sw.WriteLine("");
            //sw.WriteLine("// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID");
            //sw.WriteLine("[assembly: Guid(\"" + Guid.NewGuid().ToString() + "\")]");
            //sw.WriteLine("");
            //sw.WriteLine("// 程序集的版本信息由下面四个值组成:");
            //sw.WriteLine("//");
            //sw.WriteLine("//      主版本");
            //sw.WriteLine("//      次版本 ");
            //sw.WriteLine("//      内部版本号");
            //sw.WriteLine("//      修订号");
            //sw.WriteLine("//");
            //sw.WriteLine("// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,");
            //sw.WriteLine("// 方法是按如下所示使用“*”:");
            //sw.WriteLine("// [assembly: AssemblyVersion(\"1.0.*\")]");
            //sw.WriteLine("[assembly: AssemblyVersion(\"1.0.0.0\")]");
            //sw.WriteLine("[assembly: AssemblyFileVersion(\"1.0.0.0\")]");

            //sw.Close();
            //file.Close();

            #endregion

            #region 创建Resources.Designer.cs类
            filepath = Path.Combine(path, "Resources.Designer.cs");

            file = new FileStream(filepath, FileMode.Create);
            sw = new StreamWriter(file, Encoding.UTF8);

            sw.WriteLine("//------------------------------------------------------------------------------");
            sw.WriteLine("// <auto-generated>");
            sw.WriteLine("//     此代码由工具生成。");
            sw.WriteLine("//     运行库版本:2.0.50727.1433");
            sw.WriteLine("//");
            sw.WriteLine("//     对此文件的更改可能会导致不正确的行为,并且如果");
            sw.WriteLine("//     重新生成代码,这些更改将丢失。");
            sw.WriteLine("// </auto-generated>");
            sw.WriteLine("//------------------------------------------------------------------------------");
            sw.WriteLine("");
            sw.WriteLine("namespace " + BaseParams.RunNameSpace + ".Properties");
            sw.WriteLine("{");
            sw.WriteLine("");
            sw.WriteLine("");
            sw.WriteLine("    /// <summary>");
            sw.WriteLine("    ///   一个强类型的资源类,用于查找本地化的字符串等。");
            sw.WriteLine("    /// </summary>");
            sw.WriteLine("    // 此类是由 StronglyTypedResourceBuilder");
            sw.WriteLine("    // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。");
            sw.WriteLine("    // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen");
            sw.WriteLine("    // (以 /str 作为命令选项),或重新生成 VS 项目。");
            sw.WriteLine("    [global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Resources.Tools.StronglyTypedResourceBuilder\", \"2.0.0.0\")]");
            sw.WriteLine("    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]");
            sw.WriteLine("    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]");
            sw.WriteLine("    internal class Resources");
            sw.WriteLine("    {");
            sw.WriteLine("");
            sw.WriteLine("        private static global::System.Resources.ResourceManager resourceMan;");
            sw.WriteLine("");
            sw.WriteLine("        private static global::System.Globalization.CultureInfo resourceCulture;");
            sw.WriteLine("");
            sw.WriteLine("        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute(\"Microsoft.Performance\", \"CA1811:AvoidUncalledPrivateCode\")]");
            sw.WriteLine("        internal Resources()");
            sw.WriteLine("        {");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        /// <summary>");
            sw.WriteLine("        ///   返回此类使用的、缓存的 ResourceManager 实例。");
            sw.WriteLine("        /// </summary>");
            sw.WriteLine("        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]");
            sw.WriteLine("        internal static global::System.Resources.ResourceManager ResourceManager");
            sw.WriteLine("        {");
            sw.WriteLine("            get");
            sw.WriteLine("            {");
            sw.WriteLine("                if ((resourceMan == null))");
            sw.WriteLine("                {");
            sw.WriteLine("                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager(\"" + BaseParams.RunNameSpace + ".Properties.Resources\", typeof(Resources).Assembly);");
            sw.WriteLine("                    resourceMan = temp;");
            sw.WriteLine("                }");
            sw.WriteLine("                return resourceMan;");
            sw.WriteLine("            }");
            sw.WriteLine("        }");
            sw.WriteLine("");
            sw.WriteLine("        /// <summary>");
            sw.WriteLine("        ///   为所有资源查找重写当前线程的 CurrentUICulture 属性,");
            sw.WriteLine("        ///   方法是使用此强类型资源类。");
            sw.WriteLine("        /// </summary>");
            sw.WriteLine("        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]");
            sw.WriteLine("        internal static global::System.Globalization.CultureInfo Culture");
            sw.WriteLine("        {");
            sw.WriteLine("            get");
            sw.WriteLine("            {");
            sw.WriteLine("                return resourceCulture;");
            sw.WriteLine("            }");
            sw.WriteLine("            set");
            sw.WriteLine("            {");
            sw.WriteLine("                resourceCulture = value;");
            sw.WriteLine("            }");
            sw.WriteLine("        }");
            sw.WriteLine("    }");
            sw.WriteLine("}");
            sw.WriteLine("");

            sw.Close();
            file.Close();

            #endregion

            #region 创建Resources.resx类
            filepath = Path.Combine(path, "Resources.resx");

            file = new FileStream(filepath, FileMode.Create);
            sw = new StreamWriter(file, Encoding.UTF8);

            sw.WriteLine("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
            sw.WriteLine("<root>");
            sw.WriteLine("  <!-- ");
            sw.WriteLine("    Microsoft ResX Schema ");
            sw.WriteLine("    ");
            sw.WriteLine("    Version 2.0");
            sw.WriteLine("    ");
            sw.WriteLine("    The primary goals of this format is to allow a simple XML format ");
            sw.WriteLine("    that is mostly human readable. The generation and parsing of the ");
            sw.WriteLine("    various data types are done through the TypeConverter classes ");
            sw.WriteLine("    associated with the data types.");
            sw.WriteLine("    ");
            sw.WriteLine("    Example:");
            sw.WriteLine("    ");
            sw.WriteLine("    ... ado.net/XML headers & schema ...");
            sw.WriteLine("    <resheader name=\"resmimetype\">text/microsoft-resx</resheader>");
            sw.WriteLine("    <resheader name=\"version\">2.0</resheader>");
            sw.WriteLine("    <resheader name=\"reader\">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>");
            sw.WriteLine("    <resheader name=\"writer\">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>");
            sw.WriteLine("    <data name=\"Name1\"><value>this is my long string</value><comment>this is a comment</comment></data>");
            sw.WriteLine("    <data name=\"Color1\" type=\"System.Drawing.Color, System.Drawing\">Blue</data>");
            sw.WriteLine("    <data name=\"Bitmap1\" mimetype=\"application/x-microsoft.net.object.binary.base64\">");
            sw.WriteLine("        <value>[base64 mime encoded serialized .NET Framework object]</value>");
            sw.WriteLine("    </data>");
            sw.WriteLine("    <data name=\"Icon1\" type=\"System.Drawing.Icon, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">");
            sw.WriteLine("        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>");
            sw.WriteLine("        <comment>This is a comment</comment>");
            sw.WriteLine("    </data>");
            sw.WriteLine("                ");
            sw.WriteLine("    There are any number of \"resheader\" rows that contain simple ");
            sw.WriteLine("    name/value pairs.");
            sw.WriteLine("    ");
            sw.WriteLine("    Each data row contains a name, and value. The row also contains a ");
            sw.WriteLine("    type or mimetype. Type corresponds to a .NET class that support ");
            sw.WriteLine("    text/value conversion through the TypeConverter architecture. ");
            sw.WriteLine("    Classes that don't support this are serialized and stored with the ");
            sw.WriteLine("    mimetype set.");
            sw.WriteLine("    ");
            sw.WriteLine("    The mimetype is used for serialized objects, and tells the ");
            sw.WriteLine("    ResXResourceReader how to depersist the object. This is currently not ");
            sw.WriteLine("    extensible. For a given mimetype the value must be set accordingly:");
            sw.WriteLine("    ");
            sw.WriteLine("    Note - application/x-microsoft.net.object.binary.base64 is the format ");
            sw.WriteLine("    that the ResXResourceWriter will generate, however the reader can ");
            sw.WriteLine("    read any of the formats listed below.");
            sw.WriteLine("    ");
            sw.WriteLine("    mimetype: application/x-microsoft.net.object.binary.base64");
            sw.WriteLine("    value   : The object must be serialized with ");
            sw.WriteLine("            : System.Serialization.Formatters.Binary.BinaryFormatter");
            sw.WriteLine("            : and then encoded with base64 encoding.");
            sw.WriteLine("    ");
            sw.WriteLine("    mimetype: application/x-microsoft.net.object.soap.base64");
            sw.WriteLine("    value   : The object must be serialized with ");
            sw.WriteLine("            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter");
            sw.WriteLine("            : and then encoded with base64 encoding.");
            sw.WriteLine("");
            sw.WriteLine("    mimetype: application/x-microsoft.net.object.bytearray.base64");
            sw.WriteLine("    value   : The object must be serialized into a byte array ");
            sw.WriteLine("            : using a System.ComponentModel.TypeConverter");
            sw.WriteLine("            : and then encoded with base64 encoding.");
            sw.WriteLine("    -->");
            sw.WriteLine("  <xsd:schema id=\"root\" xmlns=\"\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\">");
            sw.WriteLine("    <xsd:element name=\"root\" msdata:IsDataSet=\"true\">");
            sw.WriteLine("      <xsd:complexType>");
            sw.WriteLine("        <xsd:choice maxOccurs=\"unbounded\">");
            sw.WriteLine("          <xsd:element name=\"metadata\">");
            sw.WriteLine("            <xsd:complexType>");
            sw.WriteLine("              <xsd:sequence>");
            sw.WriteLine("                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" />");
            sw.WriteLine("              </xsd:sequence>");
            sw.WriteLine("              <xsd:attribute name=\"name\" type=\"xsd:string\" />");
            sw.WriteLine("              <xsd:attribute name=\"type\" type=\"xsd:string\" />");
            sw.WriteLine("              <xsd:attribute name=\"mimetype\" type=\"xsd:string\" />");
            sw.WriteLine("            </xsd:complexType>");
            sw.WriteLine("          </xsd:element>");
            sw.WriteLine("          <xsd:element name=\"assembly\">");
            sw.WriteLine("            <xsd:complexType>");
            sw.WriteLine("              <xsd:attribute name=\"alias\" type=\"xsd:string\" />");
            sw.WriteLine("              <xsd:attribute name=\"name\" type=\"xsd:string\" />");
            sw.WriteLine("            </xsd:complexType>");
            sw.WriteLine("          </xsd:element>");
            sw.WriteLine("          <xsd:element name=\"data\">");
            sw.WriteLine("            <xsd:complexType>");
            sw.WriteLine("              <xsd:sequence>");
            sw.WriteLine("                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"1\" />");
            sw.WriteLine("                <xsd:element name=\"comment\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"2\" />");
            sw.WriteLine("              </xsd:sequence>");
            sw.WriteLine("              <xsd:attribute name=\"name\" type=\"xsd:string\" msdata:Ordinal=\"1\" />");
            sw.WriteLine("              <xsd:attribute name=\"type\" type=\"xsd:string\" msdata:Ordinal=\"3\" />");
            sw.WriteLine("              <xsd:attribute name=\"mimetype\" type=\"xsd:string\" msdata:Ordinal=\"4\" />");
            sw.WriteLine("            </xsd:complexType>");
            sw.WriteLine("          </xsd:element>");
            sw.WriteLine("          <xsd:element name=\"resheader\">");
            sw.WriteLine("            <xsd:complexType>");
            sw.WriteLine("              <xsd:sequence>");
            sw.WriteLine("                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"1\" />");
            sw.WriteLine("              </xsd:sequence>");
            sw.WriteLine("              <xsd:attribute name=\"name\" type=\"xsd:string\" use=\"required\" />");
            sw.WriteLine("            </xsd:complexType>");
            sw.WriteLine("          </xsd:element>");
            sw.WriteLine("        </xsd:choice>");
            sw.WriteLine("      </xsd:complexType>");
            sw.WriteLine("    </xsd:element>");
            sw.WriteLine("  </xsd:schema>");
            sw.WriteLine("  <resheader name=\"resmimetype\">");
            sw.WriteLine("    <value>text/microsoft-resx</value>");
            sw.WriteLine("  </resheader>");
            sw.WriteLine("  <resheader name=\"version\">");
            sw.WriteLine("    <value>2.0</value>");
            sw.WriteLine("  </resheader>");
            sw.WriteLine("  <resheader name=\"reader\">");
            sw.WriteLine("    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>");
            sw.WriteLine("  </resheader>");
            sw.WriteLine("  <resheader name=\"writer\">");
            sw.WriteLine("    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>");
            sw.WriteLine("  </resheader>");
            sw.WriteLine("</root>");

            sw.Close();
            file.Close();

            #endregion

            #region 创建Settings.Designer.cs类
            filepath = Path.Combine(path, "Settings.Designer.cs");

            file = new FileStream(filepath, FileMode.Create);
            sw = new StreamWriter(file, Encoding.UTF8);

            sw.WriteLine("//------------------------------------------------------------------------------");
            sw.WriteLine("// <auto-generated>");
            sw.WriteLine("//     This code was generated by a tool.");
            sw.WriteLine("//     Runtime Version:2.0.50727.1433");
            sw.WriteLine("//");
            sw.WriteLine("//     Changes to this file may cause incorrect behavior and will be lost if");
            sw.WriteLine("//     the code is regenerated.");
            sw.WriteLine("// </auto-generated>");
            sw.WriteLine("//------------------------------------------------------------------------------");
            sw.WriteLine("");
            sw.WriteLine("namespace " + BaseParams.RunNameSpace + ".Properties");
            sw.WriteLine("{");
            sw.WriteLine("");
            sw.WriteLine("");
            sw.WriteLine("    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]");
            sw.WriteLine("    [global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator\", \"9.0.0.0\")]");
            sw.WriteLine("    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase");
            sw.WriteLine("    {");
            sw.WriteLine("");
            sw.WriteLine("        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));");
            sw.WriteLine("");
            sw.WriteLine("        public static Settings Default");
            sw.WriteLine("        {");
            sw.WriteLine("            get");
            sw.WriteLine("            {");
            sw.WriteLine("                return defaultInstance;");
            sw.WriteLine("            }");
            sw.WriteLine("        }");
            sw.WriteLine("    }");
            sw.WriteLine("}");

            sw.Close();
            file.Close();

            #endregion

            #region 创建Settings.settings类
            filepath = Path.Combine(path, "Settings.settings");

            file = new FileStream(filepath, FileMode.Create);
            sw = new StreamWriter(file, Encoding.UTF8);

            sw.WriteLine("<?xml version='1.0' encoding='utf-8'?>");
            sw.WriteLine("<SettingsFile xmlns=\"http://schemas.microsoft.com/VisualStudio/2004/01/settings\" CurrentProfile=\"(Default)\">");
            sw.WriteLine("  <Profiles>");
            sw.WriteLine("    <Profile Name=\"(Default)\" />");
            sw.WriteLine("  </Profiles>");
            sw.WriteLine("  <Settings />");
            sw.WriteLine("</SettingsFile>");

            sw.Close();
            file.Close();

            #endregion
        }
    }
}
